package com.starpl.mobile.android.monthunsae.november.activity;

import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.view.Window;

import com.starpl.mobile.android.monthunsae.november.R;
import com.starpl.mobile.android.monthunsae.november.common.Launcher;
import com.starpl.mobile.android.platform.common.base.BaseActivity;


/**
 * 로딩화면(SplashScreen) Activity 
 * 
 * @author 우연화
 * @since 2011.03.16
 */
public class SplashScreenActivity extends BaseActivity
{
	/* (non-Javadoc)
	 * @see com.starpl.platform.common.base.BaseActivity#onCreate(android.os.Bundle)
	 */
	@Override
	public void onCreate(Bundle savedInstanceState)
	{
		super.onCreate(savedInstanceState);
		requestWindowFeature(Window.FEATURE_NO_TITLE);
		setContentView(R.layout.splash_screen_activity);
	}

	/* (non-Javadoc)
	 * @see com.starpl.platform.common.base.BaseActivity#onResume()
	 */
	@Override
	protected void onResume()
	{
		super.onResume();
		
		boolean isTest = getIntent().getBooleanExtra("isTest", false);
		
		if(isTest)
		{
			Launcher.startTest(this);
		}
		else
		{
			Launcher.startClient(this);
		}
	}
	
	/* (non-Javadoc)
	 * @see com.starpl.platform.common.base.BaseActivity#onCreateOptionsMenu(android.view.Menu)
	 */
	@Override
	public boolean onCreateOptionsMenu(Menu menu)
	{
		return false;
	}

	/* (non-Javadoc)
	 * @see com.starpl.platform.common.base.BaseActivity#onOptionsItemSelected(android.view.MenuItem)
	 */
	@Override
	public boolean onOptionsItemSelected(MenuItem item)
	{
		return false;
	}
	
	/* (non-Javadoc)
	 * @see android.app.Activity#onBackPressed()
	 */
	@Override
	public void onBackPressed()
	{
	   return;
	}
}